package com.hongsheng.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hongsheng.pojo.Line;

import java.util.List;

/**
 * ClassName:LineService
 * Description:
 *
 * @Author: 曾晋冠
 * @Version: 2022.3.2
 * @Create: 2023/8/12 - 13:25
 */
public interface LineService {
    /**
     * 查询
     * @return
     */
    List<Line> findAllLine();

    /**
     * 添加
     * @param line
     * @return
     */
    Boolean insertLine(Line line);

    /**
     * 修改
     * @param line
     * @return
     */
    Boolean updateLine(Line line);
    /**
     * 删除
     * @param id
     * @return
     */
    Boolean deleteLine(Integer id);
    /**
     * id查询
     * @param id
     * @return
     */
    Line findAllById(Integer id);


    IPage<Line> getPageLine(Integer currentPage, Integer pageSize, Line line);
}
